package exception;

public class ThrowDemo {
    public static void main(String[] args) {
        Student ys = new Student();
        try {
            ys.setAge(250);
            System.out.println("黄总的年龄是"+ys.getAge()+"岁");
        }catch (RuntimeException e){
            System.out.println("你别胡填填八填填的");
        }

    }
}
